**# Bookmark #1 Setting

*Windows
global root  = "G:/Dropbox/Environmental Injustice/Empirical"
global rawdata = "$root/rawdata"
global workdata = "$root/workdata"
global results = "$root/results"
global outfile = "$root/outfile"

cd "$workdata"


**# Bookmark #2 Sum
use "$outfile/Table S4.dta",clear

ttest cod if year==2001|year==2002|year==2003|year==2004|year==2005,by(belowcl_median)
ttest cod if year==2006|year==2007|year==2008|year==2009|year==2010,by(belowcl_median)

gen post=1 if year>=2006&year<=2010
replace post=0 if year<=2005

ttest cod if belowcl_median==0,by(post)
ttest cod if belowcl_median==1,by(post)
